﻿using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("Comters")]
    public class Comter
    {
        [Key]
        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorComterAlias")]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorComterAliasLength")]
        [Display(Name = "DisplayComterAlias", ResourceType = typeof(Resources.Displaies))]
        public string Alias { get; set; }

        [Required(ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorComterName")]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorComterNameLength")]
        [Display(Name = "DisplayComterName", ResourceType = typeof(Resources.Displaies))]
        public string Name { get; set; }

    }
}